#!/bin/sh
PWD=`pwd`
PATCHER=$PWD/mod/patch.sh
PATCHES=`ls -1 mod/[0-9][0-9][0-9]-*.patch 2>/dev/null`
$PATCHER -Z $PWD/ $PATCHES || exit 1
cp -af $PWD/mod/files/* $PWD
